package fei.zhou.userservice.business.service;


import fei.zhou.userservice.business.bean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import fei.zhou.userservice.business.dao.UserDao;

@Service
public class UserServiceImpl implements  UserService{

    @Autowired
    private UserDao dao;

    /**
     * 根据主键查询用户
     * @param id 用户id
     * @return 用户
     */
    @Override
    public User queryById(Long id){
        return dao.selectByPrimaryKey(id);
    }
}
